<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="p" uri="/WEB-INF/tld/pagination.tld"%>  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>核算项目--物料</title>

		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script language="JavaScript" charset="UTF-8" src="js/public.js"></script>
		<script type="text/javascript" charset="UTF-8" src="js/date1.js"></script>
		<script type="text/javascript" charset="UTF-8" src="js/sorttable.js"></script>
		<script type="text/javascript" charset="UTF-8" src="js/sellprice.js"></script>
		<script type="text/javascript" charset="UTF-8" src="js/checkboxSelect.js"></script>

	</head>
	<body>
		<div id="info_all">
			<div id="info_top">
				核算项目--物料
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="selectForSellPrice.action" theme="simple"
				id="delrow" cssStyle="margin-top:0px;">
				<div id="info_main">
					<!-- 查询-->

					<div id="select">
						<hr>
						<table>
							<tr>
								<td>
									物料代码&nbsp;
								</td>
								<td>
									<s:textfield name="verifyprojectMaterial.materialCode"
										size="12"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
								<td>
									物料名称&nbsp;
								</td>
								<td>
									<s:textfield name="verifyprojectMaterial.materialName"
										size="12"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
								<td>
									仓库&nbsp;
								</td>
								<td>
									<s:hidden
										name="verifyprojectMaterial.PBaseVerifyprojectStorageId"
										id="storageId"></s:hidden>
									<s:textfield name="storage.storageName" size="12"
										id="storageName" readonly="true"></s:textfield>
									<img src="images/kookup.gif" style="cursor: pointer"
										onclick="openWin('selectStorage.action.action','storage',800,500,0)">
									&nbsp;&nbsp;&nbsp;
								</td>
							</tr>
						</table>

					</div>
					<div class="sele">
						<input type="submit" value="查询" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />

						<input type="reset" value="重置" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
						<hr>
					</div>
					<!-- 信息显示-->
					<div id="info_info1">
						<table id="info_table" width="2370px" cellspacing=1px
							cellpadding=1px class="sortable">
							<thead>
								<tr>
									<th width="80px">
										代码
									</th>
									<th width="100px">
										名称
									</th>
									<th width="100px">
										规格型号
									</th>
									<th width="110px">
										辅助属性类型
									</th>
									<th width="80px">
										物料属性
									</th>
									<th width="95px">
										计量单位组
									</th>
									<th width="110px">
										基本计量单位
									</th>
									<th width="110px">
										采购计量单位
									</th>
									<th width="110px">
										销售计量单单位
									</th>
									<th width="110px">
										库存计量单位
									</th>
									<th width="80px">
										默认仓库
									</th>
									<th width="90px">
										来源(供应商)
									</th>
									<th width="80px">
										数量精度
									</th>
									<th width="80px">
										最低存量
									</th>
									<th width="90px">
										最高存量
									</th>
									<th width="100px">
										安全库存数量
									</th>
									<th width="80px">
										备注
									</th>
									<th width="95px">
										采购负责人
									</th>
									<th width="80px">
										采购单价
									</th>
									<th width="80px">
										销售单价
									</th>
									<th width="90px">
										保质期
									</th>
									<th width="80px">
										计划单价
									</th>
									<th width="110px">
										存货科目代码
									</th>
									<th width="130px">
										销售收入科目代码
									</th>
									<th width="130px">
										销售成本科目代码
									</th>
								</tr>
							</thead>
							<tbody>
								<s:if test="!mdtos.isEmpty()">
									<s:iterator value="mdtos">
										<tr
											ondblclick="childToParentSellPrice('${rowIndex}','materialId','<s:property value="material.materialId"/>','materialName','<s:property value="material.materialName"/>','materialCode','<s:property value="material.materialCode"/>','spec','<s:property value="material.spec"/>','basicMeasureUnitName','<s:property value="material.basicMeasureUnit" />')">
											<td>
												<s:property value="material.materialCode" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.materialName" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.spec" />
												&nbsp;
											</td>
											<td>
												<s:property
													value="assistantattributetype.assistantAttributeTypeName" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.materialAttribute" />
												&nbsp;
											</td>
											<td>
												<s:property value="measureGroup.measureGroupName" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.basicMeasureUnit" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.stockMeasureUnit" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.salesMeasureUnit" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.storageMeasureUnit" />
												&nbsp;
											</td>
											<td>
												<s:property value="storage.storageName" />
												&nbsp;
											</td>
											<td>
												<s:property value="supplier.supplierName" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.numberPrecision" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.bottomStorageNum" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.topStorageNum" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.securityStorageNum" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.memo" />
												&nbsp;
											</td>
											<td>
												<s:property value="candiate.candiateName" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.stockPrice" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.salesPrice" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.guaranteePeriod" />
												&nbsp;
											</td>
											<td>
												<s:property value="material.planPrice" />
												&nbsp;
											</td>
											<td>
												<s:property value="storageAccountBook.accountbookCode" />
												&nbsp;
											</td>
											<td>
												<s:property value="salesInputAccountBook.accountbookCode" />
												&nbsp;
											</td>
											<td>
												<s:property value="salesCostAccountBook.accountbookCode" />
												&nbsp;
											</td>
										</tr>
									</s:iterator>
								</s:if>
							</tbody>
							<tfoot>
							</tfoot>
						</table>
						<s:if test="!mdtos.isEmpty">
							<tr style="font-size: 12px;">

								<div align="center">
									<font color="#FF0000"> 共<s:property value="page.total" /> 页 第
										<s:property value="page.cpage" /> 页 <p:page cpage="%{page.cpage}"
											total="%{page.total}" url="%{page.url}" /> </font>

								</div>
							</tr>
						</s:if>
						<script language="javascript">
						//("表格名称","奇数行背,"偶数行背,"点击后背);
						mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						//("表格名称","奇数行背,"偶数行背);
						//setcolor("t","#ffffff","#ffffff");
					</script>
					</div>
				</div>
			</s:form>
		</div>
	</body>
</html>
